package com.unsiv.torch;

import android.content.Context;
import android.content.Intent;

/**
 * 
 * @author fanzhen
 * @time   11:16:44 AM Nov 14, 2011
 * @email  fanzhen.meng@gmail.com
 * @qq     474146502
 * @phone  18660809423
 */
public class ActivityUtil {
    public static final int  EXIT_APPLICATION = 0x0001;  
	private Context mContext;  
    
    public ActivityUtil(Context context){  
        this.mContext = context;  
    }  
    //完全退出应用  
    public void exit(){  
        Intent mIntent = new Intent();  
        mIntent.setClass(mContext, TorchInit.class);  
        mIntent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);  
        mIntent.putExtra("flag", EXIT_APPLICATION);  
        mContext.startActivity(mIntent);  
    }  
}
